<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>预约信息管理</title>
	<meta name="decorator" content="default"/>
	<link type="text/css" rel="stylesheet" href="${ctxStatic}/css/tdc/tdcReservationForm.css" />
	<script type="text/javascript" src="${ctxStatic}/js/tdc/tdcReservationForm.js"></script>
	<script type="text/javascript" src="${ctxStatic}/layer/layer.js"></script>
	
</head>
<body>
	<!--回显二维码图片、预约编号-->
	<input id="redirectAttributesSave" type="hidden" value="${redirectAttributes1}"/>
	
	
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/reservation/tdcReservation/form?id=${tdcReservation.id}">预约信息<shiro:hasPermission name="reservation:tdcReservation:edit">${not empty tdcReservation.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="reservation:tdcReservation:edit">查看</shiro:lacksPermission></a></li>
		
	</ul><br/>
	<form:form id="inputForm" modelAttribute="tdcReservation" action="${ctx}/reservation/tdcReservation/save" method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<form:hidden path="bespeak2code" id="bespeak2codeSave"  value="${tdcReservation.bespeak2code}"/>
	
		<form:hidden path="bespeakStatus" value="${tdcReservation.bespeakStatus}"/>
		<sys:message content="${message}"/>		
<table><tr><td>		 <div class="control-group">
			<label class="control-label">预约编号：</label>
			<div class="controls">
				<form:input path="bespeakNumber" htmlEscape="false" maxlength="11" class="input-xlarge required write" readonly="true" id="bespeakNumberSave"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
			</div>
	</td><td></td>		
	</tr><tr><td>	 <div class="control-group">
			<label class="control-label">预约人职业：</label>
			<div class="controls">
				
				<form:select path="bespeakJob" style="width:170px" class="required">
				<form:option value="" label="请选择"/>
				<form:option value="律师" label="律师"/>
					<form:option value="公检法" label="公检法"/>
					<form:options items="${fns:getDictList('bespeakJob')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
				<span class="help-inline"><font color="red">*</font> </span>
				<span class="help-inline"><font>（律师或公检法）</font> </span>
			</div>
		</div>
		</td><td></td>
</tr>
	
	
	
	<tr><td>		<div class="control-group">
			<label class="control-label">预约类型：</label>
			<div class="controls">
				<form:select path="bespeakType" style="width:170px" class="required">
				<form:option value="" label="请选择"/>
				<form:option value="提审提讯" label="提审提讯"/>
					<form:option value="会见" label="会见"/>
					<form:options items="${fns:getDictList('bespeakType')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
				<span class="help-inline"><font color="red">*</font> </span>
				<span class="help-inline"><font>（提审提讯或会见）</font> </span>
			</div>
		</div>
		</td><td></td>
</tr><tr><td>		<div class="control-group">
			<label class="control-label">预约人姓名：</label>
			<div class="controls">
				<form:input path="bespeakName" htmlEscape="false" maxlength="10" class="input-xlarge required write" placeholder="请输入预约人姓名"  id="bespeakNameId"/>
				<span class="help-inline"><font color="red" id="nameInfo1">*</font> </span>
			</div>
		</div>
		</td><td>
		<div class="control-group">
			<label class="control-label">预约人证件：</label>
			<div class="controls">
			
          <div style="width:150px;height:150px">
				<form:hidden id="bespeakCredentials" path="bespeakCredentials" htmlEscape="false" maxlength="1000" class="input-xlarge required" />
				<sys:ckfinder input="bespeakCredentials" type="images" uploadPath="/imagesAttachment" selectMultiple="true"/>
				<%-- <sys:ckfinder input="bespeakCredentials" type="images" uploadPath="/atcbase/atcBase" selectMultiple="true"/> --%>
			</div>	
			</div>
		</div>
		</td>
</tr><tr><td>		<div class="control-group">
			<label class="control-label">预约人部门：</label>
			<div class="controls">
			<form:select path="bespeakDept" class="input-xlarge write" id="subjId" >
					<option value="无">请选择</option>
					<c:forEach  items="${deptList}" var="tdcDepartment">
						<form:option value="${tdcDepartment.deptName}">${tdcDepartment.deptName}</form:option>
					</c:forEach>
				</form:select>
					<span class="help-inline"><font>（公检法请选择部门名称）</font> </span>
			</div>
		</div>
		</td><td></td>
</tr><tr><td>		<div class="control-group">
			<label class="control-label">嫌犯姓名：</label>
			<div class="controls">
				<form:input path="suspectName" htmlEscape="false" maxlength="10" class="input-xlarge required write" placeholder="请输入嫌犯姓名" id="suspectNameId"/>
				<span class="help-inline"><font color="red" id="nameInfo2">*</font> </span>
			</div>
		</div>
		</td><td><div class="control-group">
			<label class="control-label">附件证明：</label>
			<div class="controls">
				<div style="width:150px;height:150px">
				<form:hidden id="suspectAttachment" path="suspectAttachment" htmlEscape="false" maxlength="1000" class="input-xlarge required" />
				<sys:ckfinder input="suspectAttachment" type="images" uploadPath="/imagesAttachment" selectMultiple="true"/>
			</div>
			</div>
		</div></td>
		
</tr><tr><td>		<div class="control-group">
			<label class="control-label">嫌犯证件号：</label>
			<div class="controls" >
				<form:input path="suspectCredentialsNumber" htmlEscape="false" maxlength="18" class="input-xlarge required write" placeholder="请输入嫌犯证件号" pattern="^\d{17}(\d|x)$"/>
				<span class="help-inline"><font color="red" id="numberInfo">*</font> </span>
			</div>
		</div>
		</td>
		<td>
		
		</td>
</tr><tr><td>		<div class="control-group">
			<label class="control-label">预约时间段开始：</label>
			<div class="controls">
				<input name="bespeakStart" type="text"  maxlength="20" class="input-medium Wdate required" id="bespeakStartId"
					value="<fmt:formatDate value="${tdcReservation.bespeakStart}" pattern="yyyy-MM-dd HH:mm"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm',minDate:'%y-%M-%d %H:%m:00',isShowClear:false});"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		</td>
		<td>
		<div class="control-group">
			<label class="control-label">预约时间段结束：</label>
			<div class="controls">
				<input name="bespeakEnd" type="text"  maxlength="20" class="input-medium Wdate required" id="bespeakEndId"
					value="<fmt:formatDate value="${tdcReservation.bespeakEnd}" pattern="HH:mm"/>"
					onclick="WdatePicker({dateFmt:'HH:mm',isShowClear:false});"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
			</div>
			</td>
</tr>			
</table>		
		<div class="form-actions">
			<shiro:hasPermission name="reservation:tdcReservation:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission>
			<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
		</div>
	</form:form>
	
	<!--预约成功-->
		<div class="bspeakSuccess01">
			<div class="bspeakSuccess0101">
				<div class="bs02">预约成功</div>
				<div class="bs2code">
		        	<img alt="" src="" id="bespeak2codeImg"/>
				</div>
				<div class="bsnumber">预约编号:20170320001</div>
				<div class="div_0107">
					<a href="${ctx}/reservation/tdcReservation/list" >
						<input type="button" id="btn03" value="关闭" class="btn btn02"/>
					</a>
				</div>
			</div>
		</div>
		
	
</body>
</html>